package com.artwork.mapper;

import com.artwork.model.Order;

import java.util.List;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    int pushOrder(int id, int status);

    int deleteOrder(int id);

    List<Order> getList();

    List<Order> getListByBuyerId(int buyerId);

    List<Order> getListBySellerId(int sellerId);
}